package com.csyf.manager.service;

import com.csyf.manager.entity.SysWithdrawalRecord;
import com.csyf.manager.exception.ApiValidateException;
import com.csyf.manager.utils.page.JqGridVo;

import java.math.BigDecimal;

/**
 * @Author: casper
 * @Description: 提现记录Service
 * @Date: Created in 2018/10/27 17:36
 */
public interface SysWithdrawalRecordService {

    /**
     * 查询提现记录列表
     * @param vo
     * @param rows
     * @param page
     * @return
     */
    JqGridVo querydata(SysWithdrawalRecord vo, Integer rows, Integer page);


    /**
     * 查询某一天的总支出
     * @param srcmch_id
     * @param date
     * @return
     */
    BigDecimal queryTotalCase(String srcmch_id, String date);

    /**
     * 提现
     * @param accountId
     * @param withdrawMoney
     */
    void withdrawalMoney(Long accountId, BigDecimal withdrawMoney) throws ApiValidateException;
}
